package com.qjyy.c.vo;

import com.qjyy.c.ienum.IEnum;

/**
 * @Author: Martin-WuHaoran
 * @Date: 2019-04-15 15:20
 * @Description:
 */
public class ResultVO<T> implements IEnum {
    private int code;
    private String message;
    private T data;

    public ResultVO() {
    }

    public ResultVO(int code) {
        this.code = code;
        this.message="";
    }

    public ResultVO(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setData(T data) {
        this.data = data;
    }

    public int getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }

    public T getData(){
        return this.data;
    }
}
